import jieba

jieba.load_userdict("../data/custom_dict")

str1 = "数加学院牛逼，奥里给"
# print(" ".join(jieba.cut(str1)))

# 去除停用词
with open("../data/cn_stopwords.txt", mode='r', encoding='utf8') as f:
    stop_words = set(",".join(f.readlines()).replace("\n", "").split(","))
words = []
for word in jieba.cut(str1):
    if word not in stop_words:
        words.append(word)
print(words)